package com.sso.utils;

import java.util.concurrent.*;

public class ThreadPoolUtil {

    public static ExecutorService threadPool = new ThreadPoolExecutor(
            10,
            20,
            5,
            TimeUnit.MINUTES,
            new LinkedBlockingDeque<>(3),
            Executors.defaultThreadFactory(),
            new ThreadPoolExecutor.AbortPolicy());
    //线程最大数满了，返回这个线程请求，抛出异常。

}
